package com.siwei.mes.entity.experiment;

import com.alibaba.fastjson.JSONArray;
import com.siwei.mes.common.validator.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Description: 压试块
 * @Version: 1.0
 * @author: chenmaolin
 * @date: 2024/1/1 01:19
 */
@Accessors(chain = true)
@Data
public class TestBlockInfo {
    @ApiModelProperty(value = "主键id")
    @NotNull(groups = {UpdateGroup.class}, message = "抽样主键id为空")
    private Long id;

    @ApiModelProperty(value = "试验台账id")
    @NotNull(groups = {UpdateGroup.class}, message = "试验台账id为空")
    private Long experimentId;

    @ApiModelProperty(value = "抽样样品编号")
    private String smokeNo;

    /**
     * 1-水泥 2-粉煤灰 3-矿渣粉 4-粗骨料 5-细骨料 6-外加剂 7-混凝土
     */
    @Column(name = "experiment_type")
    @ApiModelProperty(value = "1-水泥 2-粉煤灰 3-矿渣粉 4-粗骨料 5-细骨料 6-外加剂 7-混凝土", name = "experimentType")
    private Integer experimentType;

    @ApiModelProperty(value = "样品等级")
    private String sampleLevel;

    @ApiModelProperty(value = "样品位置")
    private String sampleAddress;

    @ApiModelProperty(value = "对应抽样试验项目code  pk_experiment_sample_test_project")
    private String sampleTestProjectCode;

    @ApiModelProperty(value = "对应抽样试验项目名称  pk_experiment_sample_test_project")
    private String sampleTestProjectName;

    @ApiModelProperty(value = "对应抽样试验项目json")
    private JSONArray sampleTestProjectJson;

    @ApiModelProperty(value = "执行频次")
    private Integer freqNumber;

    @ApiModelProperty(value = "频次单位")
    private String freqUnit;

    @ApiModelProperty(value = "成型时间")
    private Date moldingTime;

    @ApiModelProperty(value = "最后的时间")
    private Date lastTime;

    @ApiModelProperty(value = "剩余描述 比如今日到日 1天 2天 1小时 2小时")
    private String statusRemark;

    @ApiModelProperty(value = "今日到期  1-今日到期")
    private Integer isToday;

    @ApiModelProperty(value = "图片 多个图片用逗号隔开")
    private String testBlockInfoImg;

    @ApiModelProperty(value = "对应试验项目code  字典表")
    private String testProjectCode;

    @ApiModelProperty(value = "对应试验项目名称  字典表")
    private String testProjectName;
}
